package com.beamfield.dao.sys;

import com.beamfield.model.ManagerTrain;
import com.beamfield.model.ManagerTrainExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
public interface ManagerTrainMapper {
    int deleteByPrimaryKey(Long manager_train_id);

    int insert(ManagerTrain record);

    int insertSelective(ManagerTrain record);

    List<ManagerTrain> selectByExample(ManagerTrainExample example);

    ManagerTrain selectByPrimaryKey(Long manager_train_id);

    int updateByPrimaryKeySelective(ManagerTrain record);

    int updateByPrimaryKey(ManagerTrain record);

    int insertList(List<ManagerTrain> managerTrainList);

    int logicDeleteManagerTrain(@Param("list") List<Long> midList, @Param("updater") long userId, @Param("updatetime") Date updateDate);

    int logicDeleteManagerTrainByTrainId(@Param("trainId") Long train_id, @Param("updater") Long updater, @Param("updatetime") Date date);

    List<Map<String,String>> selectByEcode(@Param("ecode") String ecode,@Param("beamId")String beamId);

    List<String> selectEcodesByTrainId(@Param("train_id")String train_id);
}